import React, { Component } from "react";
import App from "./App";

import { Route, Switch } from "react-router-dom";

import Home from "./Home";
import About from "./About";
import Home1 from "./Home1";
import Home2 from "./Home2";

class Router extends Component {
  render() {
    return (
      <App>
        <Switch>
          <Route path="/home">
            <Home>
              <Switch>
                <Route path="/home/home1">
                  <Home1 />
                </Route>
                <Route path="/home/home2">
                  <Home2 />
                </Route>
              </Switch>
            </Home>
          </Route>
          <Route path="/about">
            <About />
          </Route>
        </Switch>
      </App>
    );
  }
}

export default Router;
